package com.smile.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2021/10/11 09:45
 */
@RestController
public class HelloController {
    @Value("${test:默认值}")
    private String test;


    @RequestMapping(value = {"","index","hello"})
    public String hello(){
        return "hello you are success if you see this test-value:"+test;
    }
}
